.<template>
  <div>
    <!-- 返回按钮 -->
    <van-icon
      class="go-back"
      name="arrow-left"
      @click="goBack"
    />
    <!-- <button @click="goBack">
      回到主页
    </button>
    <router-link to="'/">
      回到主页
    </router-link> -->
    <div class="Edition-heart">
      <h3>登录页面</h3>
      <van-cell-group :border="false">
        <!-- 手机号 -->
        <van-field
          v-model="tel"
          class="inp"
          placeholder="请输入手机号"
          size="large"
        />
        <!-- 验证码 -->
        <van-field
          v-model="code"
          class="inp"
          center
          clearable
          placeholder="请输入验证码"
          size="large"
        >
          <template #button>
            <div class="send-code">
              发送验证码
            </div>
          </template>
        </van-field>
        <van-cell />
      </van-cell-group>
      <!-- 登录按钮 -->
      <van-button
        class="button-login"
        type="primary"
        block
        color="linear-gradient(to right, #ff6034, #ee0a24)"
      >
        登录
      </van-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'LoginPage',
  data() {
    return {
      tel: '',
      code: '',
    };
  },
  methods: {
    goBack() {
      this.$router.push('/');
    },
  },
};
</script>

<style lang="less" scoped>
.go-back {
  margin-left: 10px;
}
h3 {
  margin-top: 50px;
}
.Edition-heart {
  margin: 10px 20px 20px;
}
.inp {
  padding: 16px 0;
}
// input {
//   // margin-top: 30px;
//   border-style: none;
//   outline: none;
// }
.button-login {
  margin-top: 50px;
}
.Verification-Code {
  color: rgb(122, 120, 120);
}
</style>>
